Component({
  properties: {
    title: {
      type: String,
      value: ''
    },
    backgroundColor: {
      type: String,
      value: '#0f0f1a'
    },
    textColor: {
      type: String,
      value: '#ffffff'
    },
    fixed: {
      type: Boolean,
      value: true
    },
    showBorder: {
      type: Boolean,
      value: false
    }
  },
  
  data: {
    statusBarHeight: 0,
    navBarHeight: 46
  },
  
  lifetimes: {
    attached() {
      // 获取状态栏高度
      const systemInfo = wx.getWindowInfo();
      this.setData({
        statusBarHeight: systemInfo.statusBarHeight
      });
    }
  }
}) 